<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/31
 * Time: 10:25
 */

namespace app\common\service;


use think\Model;

class LayuiListApiService extends BaseService
{
    /**
     * @param $count int
     * @param $list array|Model
     * @param int $code
     * @param string $msg
     * @return mixed
     */
    public static function getData($count,$list,$code = 0,$msg = '成功')
    {
        $data['code']=$code;
        $data['count']=$count;
        $data['msg']=$msg;
        $data['data'] = $list;

        return $data;
    }
}